<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>测试</title>
        <link rel="stylesheet" href="../layui/css/layui.css">
        <script type="text/javascript" src="../layui/layui.js"></script>
    </head>
    <body>
        <!--无限极左侧菜单-->
        <div class="layui-side layui-bg-black layuimini-menu-left">
        </div>
    </body>
    <script type="text/javascript">
        layui.config({
            base: '../layui/lay/mymodules/',
            version: true
        }).extend({
            miniMenu: 'miniMenu'
        }).use(['miniMenu'], function() {
            var miniMenu = layui.miniMenu;
            console.log(miniMenu);

            miniMenu.render({
                menuList: [{
                        "title": "常规管理",
                        "icon": "fa fa-address-book",
                        "href": "",
                        "target": "_self",
                        "child": [{
                                "title": "主页模板",
                                "href": "",
                                "icon": "fa fa-home",
                                "target": "_self",
                                "child": [{
                                        "title": "主页一",
                                        "href": "page/welcome-1.html",
                                        "icon": "fa fa-tachometer",
                                        "target": "_self"
                                    },
                                    {
                                        "title": "主页二",
                                        "href": "page/welcome-2.html",
                                        "icon": "fa fa-tachometer",
                                        "target": "_self"
                                    },
                                    {
                                        "title": "主页三",
                                        "href": "page/welcome-3.html",
                                        "icon": "fa fa-tachometer",
                                        "target": "_self"
                                    }
                                ]
                            },
                            {
                                "title": "菜单管理",
                                "href": "page/menu.html",
                                "icon": "fa fa-window-maximize",
                                "target": "_self"
                            },
                            {
                                "title": "系统设置",
                                "href": "page/setting.html",
                                "icon": "fa fa-gears",
                                "target": "_self"
                            },
                            {
                                "title": "表格示例",
                                "href": "page/table.html",
                                "icon": "fa fa-file-text",
                                "target": "_self"
                            },
                            {
                                "title": "表单示例",
                                "href": "",
                                "icon": "fa fa-calendar",
                                "target": "_self",
                                "child": [{
                                        "title": "普通表单",
                                        "href": "page/form.html",
                                        "icon": "fa fa-list-alt",
                                        "target": "_self"
                                    },
                                    {
                                        "title": "分步表单",
                                        "href": "page/form-step.html",
                                        "icon": "fa fa-navicon",
                                        "target": "_self"
                                    }
                                ]
                            },
                            {
                                "title": "登录模板",
                                "href": "",
                                "icon": "fa fa-flag-o",
                                "target": "_self",
                                "child": [{
                                        "title": "登录-1",
                                        "href": "page/login-1.html",
                                        "icon": "fa fa-stumbleupon-circle",
                                        "target": "_blank"
                                    },
                                    {
                                        "title": "登录-2",
                                        "href": "page/login-2.html",
                                        "icon": "fa fa-viacoin",
                                        "target": "_blank"
                                    },
                                    {
                                        "title": "登录-3",
                                        "href": "page/login-3.html",
                                        "icon": "fa fa-tags",
                                        "target": "_blank"
                                    }
                                ]
                            },
                            {
                                "title": "异常页面",
                                "href": "",
                                "icon": "fa fa-home",
                                "target": "_self",
                                "child": [{
                                    "title": "404页面",
                                    "href": "page/404.html",
                                    "icon": "fa fa-hourglass-end",
                                    "target": "_self"
                                }]
                            },
                            {
                                "title": "其它界面",
                                "href": "",
                                "icon": "fa fa-snowflake-o",
                                "target": "",
                                "child": [{
                                        "title": "按钮示例",
                                        "href": "page/button.html",
                                        "icon": "fa fa-snowflake-o",
                                        "target": "_self"
                                    },
                                    {
                                        "title": "弹出层",
                                        "href": "page/layer.html",
                                        "icon": "fa fa-shield",
                                        "target": "_self"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "title": "组件管理",
                        "icon": "fa fa-lemon-o",
                        "href": "",
                        "target": "_self",
                        "child": [{
                                "title": "图标列表",
                                "href": "page/icon.html",
                                "icon": "fa fa-dot-circle-o",
                                "target": "_self"
                            },
                            {
                                "title": "图标选择",
                                "href": "page/icon-picker.html",
                                "icon": "fa fa-adn",
                                "target": "_self"
                            },
                            {
                                "title": "颜色选择",
                                "href": "page/color-select.html",
                                "icon": "fa fa-dashboard",
                                "target": "_self"
                            },
                            {
                                "title": "下拉选择",
                                "href": "page/table-select.html",
                                "icon": "fa fa-angle-double-down",
                                "target": "_self"
                            },
                            {
                                "title": "文件上传",
                                "href": "page/upload.html",
                                "icon": "fa fa-arrow-up",
                                "target": "_self"
                            },
                            {
                                "title": "富文本编辑器",
                                "href": "page/editor.html",
                                "icon": "fa fa-edit",
                                "target": "_self"
                            },
                            {
                                "title": "省市县区选择器",
                                "href": "page/area.html",
                                "icon": "fa fa-rocket",
                                "target": "_self"
                            }
                        ]
                    },
                    {
                        "title": "其它管理",
                        "icon": "fa fa-slideshare",
                        "href": "",
                        "target": "_self",
                        "child": [{
                                "title": "多级菜单",
                                "href": "",
                                "icon": "fa fa-meetup",
                                "target": "",
                                "child": [{
                                    "title": "按钮1",
                                    "href": "page/button.html?v=1",
                                    "icon": "fa fa-calendar",
                                    "target": "_self",
                                    "child": [{
                                        "title": "按钮2",
                                        "href": "page/button.html?v=2",
                                        "icon": "fa fa-snowflake-o",
                                        "target": "_self",
                                        "child": [{
                                                "title": "按钮3",
                                                "href": "page/button.html?v=3",
                                                "icon": "fa fa-snowflake-o",
                                                "target": "_self"
                                            },
                                            {
                                                "title": "表单4",
                                                "href": "page/form.html?v=1",
                                                "icon": "fa fa-calendar",
                                                "target": "_self"
                                            }
                                        ]
                                    }]
                                }]
                            },
                            {
                                "title": "失效菜单",
                                "href": "page/error.html",
                                "icon": "fa fa-superpowers",
                                "target": "_self"
                            }
                        ]
                    }
                ],
                multiModule: true,
                menuChildOpen: true
            });
        });
    </script>
</html>
